package com.vue.power.backend.sys.entity;

import com.vue.power.backend.common.base.entity.QueryBase;
import com.vue.power.backend.config.uuid.UUIdGenId;
import tk.mybatis.mapper.annotation.KeySql;

import javax.persistence.*;

@Table(name = "t_dict")
public class Dict extends QueryBase {

    // 字典流水ID
    @Id
    @Column(name = "id")
    @KeySql(genId = UUIdGenId.class)
    private String id;
    // 字典类型
    @Column(name = "type")
    private String type;
    // 字典编码
    @Column(name = "code")
    private String code;
    // 字典值
    @Column(name = "value")
    private String value;
    // 字典文字描述
    @Column(name = "text")
    private String text;
    // 是否可用【1：可用；2:不可用】
    @Column(name = "isUse",insertable = false)
    private String isUse;
    // 创建时间
    @Column(name = "crtDate")
    private Long crtDate;

    public String getIsUse() {
        return isUse;
    }

    public void setIsUse(String isUse) {
        this.isUse = isUse;
    }

    public Long getCrtDate() {
        return crtDate;
    }

    public void setCrtDate(Long crtDate) {
        this.crtDate = crtDate;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getValue() {
        return value;
    }

    public void setValue(String value) {
        this.value = value;
    }

    public String getText() {
        return text;
    }

    public void setText(String text) {
        this.text = text;
    }
}
